import {ModalFormProps} from "@ant-design/pro-form/lib/layouts/ModalForm";
import CModalForm from "@/components/CModalForm";
import {CModalFormProps} from "@/components/CModalForm/type";
import fields from "@/pages/system/menu/list/components/AddSysMenu/config/fields";


export default (props: {button: boolean} & ModalFormProps) => {
    // @ts-ignore
    const modalFormProps: CModalFormProps<any> = {
        ...props,
      // @ts-ignore
        groupList: fields(props.button)
    }
    return (
        <CModalForm{...modalFormProps}/>
    )
}
